// import Vue from "vue";

const route = Object.create(null)
route.install = function(vue) {
  // 第一个字符串是 组件名，第二个是组件路径，第三个是包名(如果不指定则已1.js,2.js....n.js命名)
  vue.component('home', (resolve) => { require.ensure([], () => resolve(require('@/Views/home.vue')), 'home') })
  vue.component('menuManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/sysmanage/menumanage/index.vue')), 'menuManage') })
  /* 项目管理*/
  vue.component('RequirementDocMng', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/requirementdocmng/index.vue')), 'RequirementDocMng') })
  vue.component('RequirementTaskPlan', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/requirementtaskmng/index.vue')), 'RequirementTaskPlan') })
  vue.component('RequirementTaskDetail', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/requirementtaskmng/fpdetail/standingbookpgae.vue')), 'RequirementTaskDetail') })
  vue.component('RequirementTaskIssueTrack', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/requirementtaskmng/issuetrack/index.vue')), 'RequirementTaskIssueTrack') })

  vue.component('PrjManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/index.vue')), 'PrjManage') })
  vue.component('PrjMemberManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmembermng/index.vue')), 'PrjMemberManage') })
  vue.component('PrjMemberAntSeltManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmembermng/attendancesettlement/index.vue')), 'PrjMemberAntSeltManage') })
  vue.component('PrjMemberVacateManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmembermng/vacate/index.vue')), 'PrjMemberVacateManage') })
  vue.component('PrjMemberExtraWorkManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmembermng/extrawork/index.vue')), 'PrjMemberExtraWorkManage') })

  vue.component('PrjmemberDaily', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmemberdaily/daily.vue')), 'PrjmemberDaily') })
  vue.component('PrjmemberDailyPage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmemberdaily/index.vue')), 'PrjmemberDailyPage') })

  vue.component('PrjmemberWeeklyPage', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjmemberweekly/index.vue')), 'PrjmemberWeeklyPage') })
  // 测试管理
  vue.component('RequirementTestMng', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/requirementtestmng/index.vue')), 'RequirementTestMng') })

  // 知识库
  vue.component('TansunProjectRepository', (resolve) => { require.ensure([], () => resolve(require('@/Views/projmng/prjrepository/index.vue')), 'TansunProjectRepository') })
  /* 系统管理 */
  vue.component('DictManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/sysmanage/dictmanage/index.vue')), 'DictManage') })
  vue.component('UserManage', (resolve) => { require.ensure([], () => resolve(require('@/Views/sysmanage/usermanage/index.vue')), 'UserManage') })

  /* 暂用，稍后删除*/
  vue.component('StageDivision', (resolve) => { require.ensure([], () => resolve(require('@/Views/sysmanage/stagedivision/index.vue')), 'StageDivision') })
  vue.component('MyTask', (resolve) => { require.ensure([], () => resolve(require('@/Views/sysmanage/mytask/index.vue')), 'MyTask') })



}
export default route

